package com.hq.mapper;

import com.hq.model.Root;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Controller;

/**
 * 登录、注册
 */
@Mapper
@Controller
public interface RootMapper {
    Root getUsernameAndPasswordAndRole(String username,String password,String role);

    Root getUsername(String username);

    void addRegister(Root root);
}
